<div class="main_body" id="main_body">
  <div class="breadcrub">
    当前位置：文章管理>添加分类
  </div>
  <div class="pannel">
    <table class="common_table">
      <tr>
        <th width="10%">id</th>
        <th width="50%">类别名称</th>
        <th width="20%">详情</th>
        <th width="20%">管理操作</th>
      </tr>

      {{range .goodsType}}
      <tr>
        <td>{{.Id}}</td>
        <td>{{.Name}}</td>
        <td>
            <img src="{{.Image}}" alt="">
        </td>
        <td><a href="admin/type/delete?id={{.Id}}" class="edit">删除</a></td>
      </tr>
      {{end}}
      <tr>
        <td colspan="4">
          <style>
            form > * {
              display: block;
              text-align: left;
              margin: 20px;
            }
          </style>
          <h3 style="text-align:left;margin: 20px;font-size: 18px;">
            添加商品类型:
          </h3>
          <form action="/admin/type" method="post" enctype="multipart/form-data">
            <label
              >商品类型名称:
              <input
                type="text"
                class="type_txt"
                placeholder="添加分类"
                name="typeName"
              />
            </label>
            <label
              >商品类型LOGO:
              <input type="file" name="logo" />
            </label>
            <label
              >商品类型图片:
              <input type="file" name="picture" />
            </label>
            <label>
              <input type="submit" class="addtype" value="增加分类" />
            </label>
          </form>
        </td>
      </tr>
    </table>
  </div>
</div>
